import type {WritableDraft} from "immer";


export interface useSettersStoreType<T> {
    (nextStateOrUpdater: T | Partial<T> | ((state: WritableDraft<T>) => void)): void
}

export declare namespace useUserStoreType {
    interface stateType {
        token: string,
        userInfo: Record<string, any>
    }

    type storeType = stateType & {
        setToken: (token: string) => void,
        setUserInfo: (payload: Record<string, unknown>) => void
    }
}
